package com.lemonfish.service.impl;

import com.lemonfish.mapper.RoleMapper;
import com.lemonfish.pojo.entity.Role;
import com.lemonfish.service.RoleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 角色相关Service实现
 *
 * @author Lemonfish
 * @version 1.0
 * @date 2020-03-02
 * Copyright © ï¿½Å³ï¿½
 */
@Service
@Slf4j
public class RoleServiceImpl extends BaseCustomServiceImpl<RoleMapper, Role> implements RoleService {
    @Autowired
    RoleMapper roleMapper;

    @Override
    public int deleteRight(long roleId, long permissionId) {
        return roleMapper.deleteRight(roleId, permissionId);
    }
}
